/**
 * 
 */
package com.gkwave.module.bean;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.XStream;

/**
 * @author Administrator
 *
 */
public class HealthCareDoctorBean {
	private Integer idSpecialistDoctor;
	private String nmSpecialistDoctor;
	private String nmMedicalSpecialist;
	private String tsVisit;
	private String nmContactNumber; 
	private String idEmail;
	private String nmBranch; 
	private String nmLocation;
	
	public List<HealthCareDoctorBean> entries = new ArrayList<HealthCareDoctorBean>();
	private String dtFrom;
	private String dtTo;
	private String tsFrom;
	private String tsTo;

	/**
	 * 
	 */
	public HealthCareDoctorBean() {
		// TODO Auto-generated constructor stub
	}

	public HealthCareDoctorBean(Integer idSpecialistDoctor,
								String nmSpecialistDoctor, String nmMedicalSpecialist,
								String dtFrom,String dtTo,String tsFrom,String tsTo, String nmContactNumber, String idEmail,
								String nmBranch, String nmLocation) {
		// TODO Auto-generated constructor stub
		this.idSpecialistDoctor=idSpecialistDoctor;
		this.nmSpecialistDoctor=nmSpecialistDoctor;
		this.nmMedicalSpecialist=nmMedicalSpecialist;
		this.dtFrom=dtFrom;
		this.dtTo=dtTo;
		this.tsFrom=tsFrom;
		this.tsTo=tsTo;
		this.nmContactNumber=nmContactNumber; 
		this.idEmail=idEmail;
		this.nmBranch=nmBranch; 
		this.nmLocation=nmLocation;
	}

	public String marsel(HealthCareDoctorBean obj, String alias_list, String alias_class){
		XStream xstream = new XStream();
		xstream.alias(alias_list, List.class);
		xstream.alias(alias_class, HealthCareDoctorBean.class);
		xstream.omitField(HealthCareDoctorBean.class, "entries");
//		System.out.println(xstream.toXML(obj.entries));
		return xstream.toXML(obj.entries);
	}
}
